package cn.tedu.loding.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 添加图片的DTO类
 *
 * @author java@tedu.cn
 * @version 0.0.1
 */
@Data
public class PictureAddNewDTO implements Serializable {

    /**
     * 相册id
     */
    @ApiModelProperty(value = "相册id", required = true)
    @NotNull(message = "必须提交相册id")
    private Long albumId;

    /**
     * 图片url
     */
    @ApiModelProperty(value = "图片url", required = true)
    @NotNull(message = "必须提交图片url")
    private String url;

    /**
     * 相册简介
     */
    @ApiModelProperty(value = "图片简介", required = true)
    @NotNull(message = "必须提交图片简介")
    private String description;

    /**
     * 图片宽度，单位：px
     */
    @ApiModelProperty(value = "图片宽度", required = true)
    private Object width;

    /**
     * 图片高度，单位：px
     */
    @ApiModelProperty(value = "图片高度", required = true)
    private Object height;

    /**
     * 自定义排序序号
     */
    @ApiModelProperty(value = "排序序号", required = true)
    private Integer sort;


}
